from django import template

register = template.Library()
@register.filter
def myfunc(value):
    return value.upper()

@register.simple_tag()
def mytag():
    return "55555"

@register.inclusion_tag("app1/xxxxx.html")
def xxxxx():
    return {"name":"jkwang","age": 18}